//
//  SRAttributedLabelDefines.h
//  ExpressionTest
//
//  Created by Charles on 16/9/15.
//  Copyright © 2016年 Charles. All rights reserved.
//

#import <Foundation/Foundation.h>
#ifndef SRAttributedLabel_SRAttributedLabelDefines_h
#define SRAttributedLabel_SRAttributedLabelDefines_h

typedef enum
{
    SRImageAlignmentTop,
    SRImageAlignmentCenter,
    SRImageAlignmentBottom
} SRImageAlignment;

typedef NSArray *(^SRCustomDetectLinkBlock)(NSString *text);

//如果文本长度小于这个值,直接在UI线程做Link检测,否则都dispatch到共享线程
#define SRMinAsyncDetectLinkLength 50

#define SRIOS7 ([[[UIDevice currentDevice] systemVersion] doubleValue] >= 7.0)

#endif
